<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin: 0;
        }
        .center,.left,.right{
            float: left;
            height: 100px;
        }
        .main{
            padding: 0 200px;
        }
        .left{
            width: 200px;
            background-color: red;
            margin-left: -100%;
            position: relative;
            left: -200px;
        }
        .right{
            width: 200px;
            background-color: blue;
            margin-left: -200px;
            position: relative;
            left: 200px;
        }
        .center{
            width: 100%;
            height: 200px;
            background-color: blueviolet;
        }
     
    </style>
</head>
<body>
    <div class="main">
        <div class="center">
            
        </div>
        <div class="left">left</div>
        <div class="right">right</div>
    </div>
</body>
</html>